package io.renren.modules.erp.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.erp.entity.AccountHead;
import io.renren.modules.erp.entity.DepotHead;
import io.renren.modules.erp.entity.DepotHeadExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepotHeadMapper extends BaseMapper<DepotHead> {
    long countByExample(DepotHeadExample example);

    int deleteByExample(DepotHeadExample example);

    int deleteByPrimaryKey(Long id);

    int insert(DepotHead record);

    int insertSelective(DepotHead record);

    int insertTransferAndDetail(DepotHead record);

    int insertModalShiftAndDetail(DepotHead record);

    int insertCheckAndDetail(DepotHead record);


    List<DepotHead> selectByExample(DepotHeadExample example);

    DepotHead selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") DepotHead record, @Param("example") DepotHeadExample example);


    int checkSetStatus(@Param("record") DepotHead record, @Param("depotHeadID") Long depotHeadID);

    int checkItemSetStatus(@Param("record") DepotHead record, @Param("ids") String[] ids);

    int updateByExample(@Param("record") DepotHead record, @Param("example") DepotHeadExample example);

    int updateByPrimaryKeySelective(DepotHead record);

    int updateTransferAndDetail(DepotHead record);


    int updateByPrimaryKey(DepotHead record);
}